<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link href="http://127.0.0.1/vancl/Static/Admin/css/style.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/vancl/Static/hdjs/hdjs.css"/>
		<script type="text/javascript" src="http://127.0.0.1/vancl/Static/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/vancl/Static/hdjs/hdjs.min.js"></script>
		<script type="text/javascript">
			$(function() {
				$('form').validate({
					taname: {
						rule: {
							required: true,
							maxlen: 20
						},
						error: {
							required: "属性名称不能为空",
							maxlen: '属性名称不能超过20个字符'
						}
					},
					tavalue: {
						rule: {
							required: true,
							maxlen: 	255,
						},
						error: {
							required: '属性值不能为空',
							maxlen: '属性值不能超过255个字符',
						}
					}
				})
			})
		</script>
	</head>

	<body>

		<div class="place">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">商品管理</a></li>
				<li><a href="#">类型管理</a></li>
				<li><a href="#">类型列表</a></li>
				<li><a href="#">属性列表</a></li>
				<li><a href="#">添加属性</a></li>
			</ul>
		</div>
		<form action="" method="POST">
			<div class="formbody">	
				<div class="formtitle"><span>修改属性</span></div>	
				<ul class="forminfo">
					<li>
						<label>属性名称</label>
						<input name="taname" type="text" class="dfinput" value="<?php echo $oldData['taname'];?>"/>
						<i>请在输入框中填写要添加的商品类型名称，然后点击添加按钮</i>
					</li>
					<li>
						<label>属性类别</label>
						<cite>
				    			<input name="taclass" type="radio" value="0"     <?php if($oldData['taclass']==0){ ?>checked="checked"<?php } ?> />&nbsp;属性&nbsp;&nbsp;&nbsp;&nbsp;
				    			<input name="taclass" type="radio" value="1"     <?php if($oldData['taclass']==1){ ?>checked="checked"<?php } ?> />&nbsp;规格
				    		</cite>
					</li>
					<li>
						<label>属性值</label>
						<textarea name="tavalue" cols="" rows="" class="textinput" placeholder=""><?php echo $oldData['tavalue'];?></textarea>
						<i>（多个值用 , 分隔）</i>
					</li>
					<li>
						<label>&nbsp;</label>
						<input name="" type="submit" class="btn" value="确认添加" />
					</li>
				</ul>	
			</div>
			<input type="hidden" name="tid" value="<?php echo $oldData['tid'];?>"/>
			<input type="hidden" name="taid" value="<?php echo $hd['get']['taid'];?>"/>
		</form>
	</body>

</html>